* Table A22: Descriptives for Waterpipe Survey
use "$data/waterpipe_touse.dta", clear

* Generate income groups
tab DEMO_faminc

recode DEMO_faminc (1/3=1) (4/6=2) (7/9=3) (9/13=4) (else=.), gen(income_group)
lab define income_group_lab 1 "Income: Low" 2 "Income: Lower Middle" 3 "Income: Upper Middle" 4 "Income: High"
label values income_group income_group_lab
label var income_group "Income Groups"
tab income_group

/*DEMO_race
Description: Race
Count Code Label
----- ---- -----
2723 1 White
491 2 Black
459 3 Hispanic
141 4 Asian
44 5 Native American
129 6 Mixed
76 7 Other
18 8 Middle Eastern
*/

gen race_group = 4
replace race_group = 1 if DEMO_race == 1
replace race_group = 2 if DEMO_race == 2
replace race_group = 3 if DEMO_race == 5

lab define race_group_lab 1 "White" 2 "Black/African American" 3 "American Indian/Alaska Native" 4 "Other"
lab values race_group race_group_lab
tab race_group
